var express = require("express");
var router = express.Router();

const listBy135 = {
	list: [
		{
			charge_type: "Free",
			id: 356,
			type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "艺术辉煌，历史印记。",
					title: "拜占庭风韵",
				},
				display_mode: 2,
				cover_image_list: [
					{
						cover_image: "/88dec09ba415f03494482d18cd314de5.jpg",
						id: 233,
					},
					{
						cover_image: "/8b7c4b4323d1d7cf035cb0184d5f7d31.jpg",
						id: 235,
					},
					{
						cover_image: "/cf606c898f60f49ef0085c4f449c5040.jpg",
						id: 236,
					},
					{
						cover_image: "/15374ff837eaf830ef566de03388ac89.jpg",
						id: 238,
					},
					{
						cover_image: "/9b151df0f3d0961f86849874dde167ba.jpg",
						id: 245,
					},
					{
						cover_image: "/e52f10ba91c3f820494f91d1aeae1ae2.jpg",
						id: 246,
					},
					{
						cover_image: "/ebaaf150e59576c82791a9695f38c514.jpg",
						id: 289,
					},
					{
						cover_image: "/fbe0754d01b6fa676c7ba18ed4156d79.jpg",
						id: 231,
					},
					{
						cover_image: "/78ae40808291b9de118d9267910726ee.jpg",
						id: 203,
					},
				],
			},
			points_json: {
				points: "10",
			},
		},
		{
			charge_type: "Free",
			id: 350,
            type: "sticker",
			json_content: {
				app_flow_id: "621",
				cn: {
					desc: "宗教风格，艺术气息。",
					title: "教堂花窗",
				},
				display_mode: 3,
				cover_image_list: [
					{
						cover_image: "/889e42ab7b021bc3afa270a4aee80bdc.jpg",
						id: 233,
					},
					{
						cover_image: "/455316a6f0c2c2f316b823c727466a6b.jpg",
						id: 235,
					},
					{
						cover_image: "/edaed82c23a9847931c1bffe89ff22c4.jpg",
						id: 236,
					},
					{
						cover_image: "/4de02a550c1776889763f6b702c2bb4d.jpg",
						id: 238,
					},
				],
			},
			points_json: {
				points: "14",
			},
		},
		{
			charge_type: "Free",
			id: 338,
            type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "古代神秘，尊贵气息。",
					title: "玛雅皇女",
				},
				display_mode: 4,
				cover_image_list: [
					{
						cover_image: "/2249d0e709098f3185b8a42df5f0ba0d.jpg",
						id: 233,
					},
					{
						cover_image: "/9c6e099f8c0aaada983b0769c6933c6f.jpg",
						id: 235,
					},
					{
						cover_image: "/09c112838ed07598af5beaef43abefb1.jpg",
						id: 236,
					},
					{
						cover_image: "/a1a98a5ba9155abeb47210fcaaa7ad4c.jpg",
						id: 238,
					},
				],
			},
			points_json: {
				points: "18",
			},
		},
		{
			charge_type: "Free",
			id: 358,
            type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "深邃黑白，细腻质感。",
					title: "炭笔素描",
				},
				display_mode: 4,
				cover_image_list: [
					{
						cover_image: "/237162c775c0dc655a9b7552a92fb996.jpg",
						id: 233,
					},
					{
						cover_image: "/747cb162c162b869dd4f70d26d028b74.jpg",
						id: 235,
					},
					{
						cover_image: "/70b6e37ddf602782a4c2021962199978.jpg",
						id: 236,
					},
					{
						cover_image: "/0f262bf8b96351cc1a2c394f03be5b43.jpg",
						id: 238,
					},
				],
			},
			points_json: {
				points: "10",
			},
		},
		{
			charge_type: "Free",
			id: 355,
            type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "鲜艳色彩，艺术之美。",
					title: "彩铅创作",
				},
				display_mode: 2,
				cover_image_list: [
					{
						cover_image: "/8c4e46f61a9a759abda14eb454c20e33.jpg",
						id: 233,
					},
					{
						cover_image: "/a03b98c0edee2c74a5706a212427ca58.jpg",
						id: 235,
					},
					{
						cover_image: "/2197e2d451b9af9fc81eab112eb430c2.jpg",
						id: 236,
					},
					{
						cover_image: "/37cbb98d91380c2b91903de0a2c5f29b.jpg",
						id: 238,
					},
					{
						cover_image: "/02e86db282b6ca0a3ea51188257b7382.jpg",
						id: 245,
					},
					{
						cover_image: "/51f7d0f2f5ac59e980d1d18e529c283e.jpg",
						id: 246,
					},
					{
						cover_image: "/a7ecacb6627922a32f645ebe937988a6.jpg",
						id: 289,
					},
					{
						cover_image: "/064164f23ea98efb29bf17fd6123ae79.jpg",
						id: 231,
					},
					{
						cover_image: "/fdd0f40baf82b3752a5e488cfc32ddf8.jpg",
						id: 203,
					},
				],
			},
			points_json: {
				points: "12",
			},
		},
	],
};

const listBy139 = {
	list: [
		{
			id: 365,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "清新风格，治愈插画。",
					title: "清新插画",
				},
				cover_image: "/8cacd23cf726748de21a08039b423207.jpg",
			},
			points_json: { points: "10" },
		},
		{
			id: 368,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "可爱，好看，吸引人。",
					title: "可爱",
				},
				cover_image: "/39c18fa3e957f32314bdf0a6b4b6f096.jpg",
			},
			points_json: { points: "14" },
		},
		{
			id: 378,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "鲜艳色彩，个性十足",
					title: "漫画风尚",
				},
				cover_image: "/fccfad3e05f56c059b7f82e7ce4d6d72.jpg",
			},
			points_json: { points: "10" },
		},
		{
			id: 379,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "唯美画风，细致入微。",
					title: "韩漫艺术",
				},
				cover_image: "/67e74cb05decef2db35e8fe4118b40e9.jpg",
			},
			points_json: { points: "16" },
		},
		{
			id: 436,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "冒险逃亡，绝美公主。",
					title: "在逃公主",
				},
				cover_image: "/a66b25f21de68f173ec690f19ff777be.jpg",
			},
			points_json: { points: "10" },
		},
		{
			id: 365,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "清新风格，治愈插画。",
					title: "清新插画",
				},
				cover_image: "/8cacd23cf726748de21a08039b423207.jpg",
			},
			points_json: { points: "10" },
		},
	],
};

const listBy138 = {
	list: [
		{
			id: 373,
			charge_type: "Free",
			type: "face_swap",
			json_content: {
				cn: {
					desc: "优雅花饰，古典韵味。",
					title: "簪花系列",
				},
			},
			points_json: { points: "14" },
			tpl_image_list: [
				{
					id: 794,
					cat_s_image: "/10146_17218126756546829751_s.jpg",
				},
				{
					id: 795,
					cat_s_image: "/10146_17218126765414576719_s.jpg",
				},
				{
					id: 790,
					cat_s_image: "/10146_17218126766846725823_s.jpg",
				},
				{
					id: 791,
					cat_s_image: "/10146_17218126775750447417_s.jpg",
				},
				{
					id: 799,
					cat_s_image: "/10146_17218126785797640061_s.jpg",
				},
			],
		},
		{
			id: 374,
			charge_type: "Free",
			type: "face_swap",
			json_content: {
				cn: {
					desc: "传统典雅，历史气息。",
					title: "民国风貌",
				},
			},
			points_json: { points: "16" },
			tpl_image_list: [
				{
					id: 794,
					cat_s_image: "/7178a143175f9754d274f9eec2c1e4c5_s.jpg",
				},
				{
					id: 795,
					cat_s_image: "/3080a584b3c28b1b9080429a725c24ec_s.jpg",
				},
				{
					id: 790,
					cat_s_image: "/69919e9984e7b86c8b457c259ad15c95_s.jpg",
				},
				{
					id: 791,
					cat_s_image: "/fe728eecaefbb97981634b832527d1bc_s.jpg",
				},
				{
					id: 799,
					cat_s_image: "/3080a584b3c28b1b9080429a725c24ec_s.jpg",
				},
			],
		},
		{
			id: 375,
			charge_type: "Free",
			type: "face_swap",
			json_content: {
				cn: {
					desc: "古典美学，优雅风范。",
					title: "汉服风采",
				},
			},
			points_json: { points: "24" },
			tpl_image_list: [
				{
					id: 794,
					cat_s_image: "/74875dd3f2b9b492e838b6200161d2b0_s.jpg",
				},
				{
					id: 795,
					cat_s_image: "/ace0633c70b89535d251044b35f97bc2_s.jpg",
				},
				{
					id: 790,
					cat_s_image: "/b699e6025c71760261005a1f243552e2_s.jpg",
				},
				{
					id: 791,
					cat_s_image: "/003db45b9c38cba38cdddee7d7ed4124_s.jpg",
				},
				{
					id: 799,
					cat_s_image: "/7e5b2fb20c7f393b5a7508ae9c28da2b_s.jpg",
				},
			],
		},
		{
			id: 376,
			charge_type: "Free",
			type: "face_swap",
			json_content: {
				cn: {
					desc: "清晰背景，标准格式。",
					title: "身份证照",
				},
			},
			points_json: { points: "14" },
			tpl_image_list: [
				{
					id: 794,
					cat_s_image: "/10149_17218805962466568959_s.jpg",
				},
				{
					id: 795,
					cat_s_image: "/10149_17218805964115411617_s.jpg",
				},
				{
					id: 790,
					cat_s_image: "/10149_17218805963207812417_s.jpg",
				},
				{
					id: 791,
					cat_s_image: "/10149_17218805978928366161_s.jpg",
				},
				{
					id: 799,
					cat_s_image: "/10149_17218805971473985222_s.jpg",
				},
			],
		},
	],
};

const listBy134 = {
	list: [
		{
			charge_type: "Free",
			id: 355,
            type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "鲜艳色彩，艺术之美。",
					title: "彩铅创作",
				},
				display_mode: 2,
				cover_image_list: [
					{
						cover_image: "/8c4e46f61a9a759abda14eb454c20e33.jpg",
						id: 233,
					},
					{
						cover_image: "/a03b98c0edee2c74a5706a212427ca58.jpg",
						id: 235,
					},
					{
						cover_image: "/2197e2d451b9af9fc81eab112eb430c2.jpg",
						id: 236,
					},
					{
						cover_image: "/37cbb98d91380c2b91903de0a2c5f29b.jpg",
						id: 238,
					},
					{
						cover_image: "/02e86db282b6ca0a3ea51188257b7382.jpg",
						id: 245,
					},
					{
						cover_image: "/51f7d0f2f5ac59e980d1d18e529c283e.jpg",
						id: 246,
					},
					{
						cover_image: "/a7ecacb6627922a32f645ebe937988a6.jpg",
						id: 289,
					},
					{
						cover_image: "/064164f23ea98efb29bf17fd6123ae79.jpg",
						id: 231,
					},
					{
						cover_image: "/fdd0f40baf82b3752a5e488cfc32ddf8.jpg",
						id: 203,
					},
				],
			},
			points_json: {
				points: "12",
			},
		},
        {
			id: 365,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "清新风格，治愈插画。",
					title: "清新插画",
				},
				cover_image: "/8cacd23cf726748de21a08039b423207.jpg",
			},
			points_json: { points: "10" },
		},
		{
			id: 368,
			charge_type: "Free",
			type: "styler",
			json_content: {
				cn: {
					desc: "可爱，好看，吸引人。",
					title: "可爱",
				},
				cover_image: "/39c18fa3e957f32314bdf0a6b4b6f096.jpg",
			},
			points_json: { points: "14" },
		},
        {
			charge_type: "Free",
			id: 356,
			type: "sticker",
			json_content: {
				app_flow_id: "638",
				cn: {
					desc: "艺术辉煌，历史印记。",
					title: "拜占庭风韵",
				},
				display_mode: 2,
				cover_image_list: [
					{
						cover_image: "/88dec09ba415f03494482d18cd314de5.jpg",
						id: 233,
					},
					{
						cover_image: "/8b7c4b4323d1d7cf035cb0184d5f7d31.jpg",
						id: 235,
					},
					{
						cover_image: "/cf606c898f60f49ef0085c4f449c5040.jpg",
						id: 236,
					},
					{
						cover_image: "/15374ff837eaf830ef566de03388ac89.jpg",
						id: 238,
					},
					{
						cover_image: "/9b151df0f3d0961f86849874dde167ba.jpg",
						id: 245,
					},
					{
						cover_image: "/e52f10ba91c3f820494f91d1aeae1ae2.jpg",
						id: 246,
					},
					{
						cover_image: "/ebaaf150e59576c82791a9695f38c514.jpg",
						id: 289,
					},
					{
						cover_image: "/fbe0754d01b6fa676c7ba18ed4156d79.jpg",
						id: 231,
					},
					{
						cover_image: "/78ae40808291b9de118d9267910726ee.jpg",
						id: 203,
					},
				],
			},
			points_json: {
				points: "10",
			},
		},
	],
};

router.get("/", (req, res) => {
	let { id } = req.query;
	let data;
	switch (id) {
		case "135":
			data = listBy135;
			break;
		case "139":
			data = listBy139;
			break;
		case "138":
			data = listBy138;
			break;
        case "134":
            data = listBy134;
            break;
	}

	res.send({
		code: 0,
		message: "success",
		data,
	});
});

module.exports = router;
